import require from '@/utils/request.js'
import { setUrl } from '@/utils/util'

const config = {
  headers: {
    'Content-Type': 'multipart/form-data;boundary = ' + new Date().getTime()
  }
}


// 上传文件
export function upload(data) {
  return require({
    url: '/employee/upload',
    method: 'post',
    data,
    config
  })
}


// 删除文件
export function deleteUploadFile(data) {
  const url = setUrl('/employee/deleteUploadFile', data)
  return require({
    url,
    method: 'delete'
  })
}


// 获取单条信息
export function getObjectInfo(data){
  const url = setUrl('/employee/getObjectInfo', data)
  return require({
    url,
    method:'get'
  })
}

//
export function getDeadStatusObject(data){
  const url = setUrl('/employee/getDeadStatusObject',data)
  return require({
    url,
    method:'get'
  })
}
